<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

</head>
<body>


    <script>

        //get 请求
         
  axios.get('./data/1.json').then(res=>{
      console.log(res.data)
  }).catch(err=>{
      console.log(err)
  })

//   post 请求




  axios.post('http://mengtion.vip/kfl-api/api/getproduct.php').then(res=>{
      console.log(res.data)
  })




    </script>
</body>
</html>